const mixin1 = {
  data () {
    return {
      currentTime: ''
    }
  },
  created () {
    setInterval(() => {
      this.currentTimes()
    }, 1000)
  },
  methods: {
    currentTimes () {
      let data = new Date()
      let yeth = data.getFullYear()
      let Mon = data.getMonth() + 1
      let date = data.getDate()
      let hours = data.getHours()
      let min = data.getMinutes()
      let s = data.getSeconds()
      let str = yeth + '-' + Mon + '-' + date + ' ' + hours + ':' + min + ':' + s
      this.currentTime = str
    }
  }
}
export {
  mixin1
}
